<template>
  <div id="home">
    <el-container>
      <el-header>
        <span class="left">
          <ul>
            <li><img src="../image/jfyt.png" alt=""></li>
            <li><img src="../image//bjjfy.png" alt=""></li>
          </ul>
        </span>
        <span class="right">
          <ul>

            <li><img src="../image/设置 选中.png" alt="">
              <div class="box">5</div>
            </li>
            <li><img class="pelpo" src="../image/cfc768575f0f4107a2e054f701dd07fb.png" alt=""><span
                class="text">yeah</span></li>
            <li><img src="../image/铃铛,提醒,消息.png" alt=""></li>
          </ul>
        </span>


      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu router default-active="2" class="el-menu-vertical-demo" @open="handleOpen"
            @close="handleClose" background-color="#2A354D" text-color="#8FA3CD" :unique-opened="true"
            active-text-color="#FFFFFF">
            <el-menu-item index="/workbench">
              <i class="el-icon-menu"></i>
              <span slot="title">工作台</span>
            </el-menu-item>
            <el-submenu index="shopadmin">
              <template slot="title">
                <i class="el-icon-s-cooperation
                "></i>
                <span>商品管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="snowpacklist">雪场分类</el-menu-item>
                <el-menu-item index="shoplist">商品列表</el-menu-item>
                <el-menu-item index="comment">评论管理</el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-menu-item index="member">
              <i class="el-icon-s-check"></i>
              <span slot="title">会员管理</span>
            </el-menu-item>
            <el-menu-item index="authority">
              <i class="el-icon-news"></i>
              <span slot="title">权限管理</span>
            </el-menu-item>

            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>系统设置</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="privatekey">秘钥设置</el-menu-item>
                <el-menu-item index="regardsapp">关于app</el-menu-item>

              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main>
          <span class="place">位置:<span>{{$route.meta.title}}</span></span>
          <router-view />

        </el-main>
      </el-container>
    </el-container>


  </div>
</template>
<script>
  export default {
    data() {
      return {
        msg: this.$route.meta
      }
    },
    methods: {

      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }


    },
    mounted() {
      console.log(this.$route.meta.title)
    }

  }

</script>
<style>




  .place {
    color: black;
    font-weight: 700px;
  }

  .box {
    width: 12px;
    height: 12px;
    background-color: red;
    position: absolute;
    right: 163px;
    top: 8px;
    border-radius: 50%;
    z-index: 2;
    line-height: 12px;
    color: #fff;
  }



  .el-header,
  .el-footer {
    background-color: #FFFFFF;
    color: #333;
    /* text-align: center; */
    line-height: 60px;
  }

  .el-aside {
    background-color: #2A354D;
    color: #F8F9FB;
    /* text-align: center; */
    line-height: 100vh;

  }

  .el-main {
    background-color: #F3F5FA;
    color: #333;
    /* text-align: center; */
    line-height: 20px;
  }

  body>.el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

  
  
  #home{
    height: 100%;
   
  }
  
  
  .el-main {
    background-color: #F3F5FA;
    color: #333;
    /* text-align: center; */
    line-height: 20px;
    width: 100%;
    height: 100%;
    background-color: #F3F5FA;
}

  ul {
    list-style: none;
  }

  .left>ul>li {
    float: left;
  }

  .right>ul>li {
    float: right;
    padding: 0 15px;
  }

  .right>ul>li {
    position: relative;
  }

  .el-menu-vertical-demo {
    height: 100%;

  }

  element.style {
    background-color: #2A354D;
  }
</style>